home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / client / include / data.h next >
Encoding:
C/C++ Source or Header  |  2000-01-12  |  3.1 KB  |  101 lines

  1. /* ----- global data ----- */
  2.  
  3. #ifndef _DATA_H
  4. #define _DATA_H
  5.  
  6. __BEGIN_DECLS
  7.  
  8. /* NOTE: these are defined in main.c */
  9.  
  10. extern int sockfd;               /* the main file descriptor      */
  11.  
  12. extern int klogfd;               /* /dev/klog fd                  */
  13. extern int nullfd;               /* /dev/null for stdin           */
  14.  
  15. extern int  dblogfd;             /* where we log debbuging info   */
  16. extern FILE *dblogfd1;           /* same file but FILE *          */
  17.  
  18. extern int  errlogfd;            /* where we write errors to      */
  19. extern FILE *errlogfd1;          /* same file but FILE *          */
  20.  
  21. extern FILE *confd;              /* syslog config file            */
  22. extern FILE *spoolfd;            /* where to spool to locally     */
  23.  
  24. extern int connected;            /* are we connected to the serv? */ 
  25.  
  26. extern int subID;                /* our sub-ID.. sent from server */
  27.  
  28. extern int spooling, didspool;   /* are we or were we spooling?   */
  29. extern pid_t spoolpid;           /* pid of the spooling process   */
  30.  
  31. extern int pinging;              /* are we pinging or not?        */
  32. extern volatile int streaming;   /* set to 1 when we're streaming */
  33.  
  34. extern int shmID;                /* key ID for shared memory      */
  35. extern char *segptr;             /* ptr to shared mem buffer      */
  36. extern char oldbuf[MAXSEGSIZE];  /* has old shared mem.. compares */
  37.  
  38. extern volatile pid_t chpid;    /* child's pid needed so we can kill it  */
  39.  
  40. extern int nfds;               /* fd's for select()    */
  41. extern int funix;              /* the /dev/log unix fd */
  42. extern fd_set readfds, unixm;  /* fd sets for select() */
  43.  
  44. extern int prevmsg; /* previous msg type  */
  45.  
  46. extern int repcount;
  47. extern long prevlogtime;
  48. extern char prevlogmsg[MAXLOGSIZE];
  49.  
  50. extern jmp_buf dospool, infoconn, reconnect, dropconn, doquit, sigdropconn;
  51.  
  52. extern volatile sig_atomic_t running; /* it isn't waiting for child  */
  53. extern volatile sig_atomic_t newData; /* child knows it has new data */
  54. extern volatile sig_atomic_t gotAlrm; /* alarm ran out...            */
  55.  
  56. extern struct msg logmsg;
  57.  
  58. extern int locPort; 
  59. extern int curport;
  60.  
  61. extern struct sockaddr_in laddr, daddr;
  62.  
  63. extern int useServ; /* server # in list to start with #0 */
  64. extern int curServ; /* index into server structure       */
  65. extern struct server servList[MAXSERVNUM];
  66.  
  67. extern char SRSdir[MAXDNAMESIZE];
  68.  
  69. extern int gotInfoServ; /* we'ved connected to the info server */
  70.  
  71. extern struct passwd *pwd;
  72.  
  73. /* files the user can define */
  74. extern char *errorFile, *dbFile, *spoolFile, *servListFile;
  75.  
  76. extern int prim;   /* connect to prim/sec server?   */
  77.  
  78. extern int silent; /* output connecting info or not */
  79. extern int errors; /* was there an error or not?    */
  80.  
  81. extern volatile int debugging; /* output debugging info or not  */
  82.  
  83. extern int start;  /* 1 when first started   */
  84. extern int done;   /* have we called quit()? */
  85.  
  86. extern int child;  /* used to determine if ping process is up */
  87.  
  88. extern int initing; /* are we initializing? */
  89.  
  90. extern int curlogfd; /* index into logfds[] */
  91. extern struct logfd logfds[MAXLOGTYPES];
  92.  
  93. #ifndef NOSSL
  94. extern SSL *sslconn;
  95. extern SSL_CTX *sslctx;
  96. #endif
  97.  
  98. __END_DECLS
  99.  
  100. #endif /* _DATA_H */
  101.